package com.yin;

import com.yin.algorithms.*;
import com.yin.exam.*;

public class Application {

    public static void main(String[] args) {

        //, -10, -5, -8, -7, 1, 3, -5
        int[] arr = {10, 9, 5, 6, 3, 4, 1, 7, 2, 8, 4, 1, 9, 4, 7, 6};
        Util.print("Pre:", arr);

//        Sort sorter = new SelectionSort();
//        Sort sorter = new BubbleSort();
//        Sort sorter = new InsertionSort();
//        Sort sorter = new ShellSort();
//        Sort sorter = new QuickSort();
//        Sort sorter = new MergeSortExam();
//        Sort sorter = new CountSort();
//        Sort sorter = new QuickSortExam();
//        Sort sorter = new RadixSort();
//        Sort sorter = new HeapSort();
        Sort sorter = new HeapSortExam();
        sorter.sort(arr);
        Util.print("Post:", arr);
    }
}
